home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / A-Z / Q / QuickDraw3D / Simple QuickDraw 3D View / MQD3DSample.cp next >
Encoding:
Text File  |  1996-04-03  |  1.5 KB  |  62 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. // MQD3DSample.cp
  3. // Copyright © 1996 by Apple Computer, Inc. All rights reserved. 
  4. //----------------------------------------------------------------------------------------
  5.  
  6. // QD3D Sample
  7.  
  8. #ifndef __UQD3DApplication__
  9. #include "UQD3DApplication.h"
  10. #endif
  11.  
  12. #ifndef __UQD3DViewer__
  13. #include "UQD3DViewer.h"
  14. #endif
  15.  
  16. #ifndef __UCustomViewerWindow__
  17. #include "UCustomViewerWindow.h"
  18. #endif
  19.  
  20. // MacApp
  21. #ifndef __UDIALOG__
  22. #include "UDialog.h"
  23. #endif
  24.  
  25. #ifndef __UMACAPPGLOBALS__
  26. #include "UMacAppGlobals.h"
  27. #endif
  28.  
  29. #ifndef __UMACAPPUTILITIES__
  30. #include "UMacAppUtilities.h"
  31. #endif
  32.  
  33. // Generate universal code
  34. #pragma processor 68000
  35.  
  36.  
  37. //----------------------------------------------------------------------------------------
  38. // main: 
  39. //----------------------------------------------------------------------------------------
  40. #pragma segment Main
  41.  
  42. void main ()
  43. {
  44.     InitUMacApp(4);                                        // Initialize MacApp with 4 calls to MoreMasters
  45.  
  46. #if qDrag
  47.     if (HasDragManager())
  48.         InitUDragManager();
  49. #endif    
  50.     InitUDialog();    
  51.     InitUQD3DViewerView();                                // Initialize the application's view unit.
  52.     InitUCustomViewerWindow();
  53.     TQD3DApplication* aQD3DApplication = new TQD3DApplication;    // Allocate application object
  54.     aQD3DApplication->IQD3DApplication();        //    Initialize the object
  55.     aQD3DApplication->Run();                        //    Well lets run it then!
  56. } // main 
  57.  
  58. //----------------------------------------------------------------------------------------
  59. // End of MQD3DSample.cp
  60.  
  61. #pragma segment Inline
  62.